<?php
// Includes the main class, which will start a session and include classes.
require_once("classes/main.class.php");
?>

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="nl" xml:lang="nl">
    <head>
        
        <title>OnnemIT - Computers en meer voor een eerlijke prijs.</title>
        
        <!-- The basic style sheet for keeping the whole website togheter. !-->
        <link href="styles/default/index.css" rel="stylesheet" type="text/css" />
        <!-- The style sheet for all different main styles. !-->
        <link href="styles/default/main.css" rel="stylesheet" type="text/css" />
        
        <!-- include.js loads all general Javascript files and manages the bodyload() function. !-->
        <script type="text/javascript" src="javascript/include.js"></script>
        
    </head>
    
    <!-- The bodyload() function is located in javascript/include.js, which can execute multiple functions on page load. !-->
    <body onload="bodyload()">
        <div id="main">
            
            <div id="header">
                <?php 
                    include("pages/parts/header.php"); 
                ?>
            </div>
            
            <div id="menu_top">
                <?php 
                    include("pages/parts/menu_top.php"); 
                ?>
            </div>
            
            <div id="menu_left">
                <?php 
                    include("pages/parts/menu_left.php"); 
                ?>
            </div>
            
            <div id="menu_right" class="menu-corner-br">
                <?php 
                    include("pages/parts/menu_right.php"); 
                ?>
            </div>
            
            <div id="content">
                <?php 
                    // Includes the page with the name of $_GET['p'].
                    require_once(Main::get_page()) 
                ?>
            </div>
            
<!--            <div id="footer">
                <?php include("pages/parts/footer.php"); ?>
            </div>-->
        </div>
    </body>
</html>